package org.itrip.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * Created by 涛 on 2016/3/16.
 */
@Document(collection = "website")
public class WebSite implements Serializable {

    private static final long serialVersionUID = 3617931430808763429L;

    @Id
    private String id;
    private String url;
    private String html;

    public WebSite(String url, String html) {
        this.url = url;
        this.html = html;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }

    public String getHtml() {
        return html;
    }

    public void setHtml(String html) {
        this.html = html;
    }

    @Override
    public String toString() {
        return "WebSite{" +
                "id='" + id + '\'' +
                ", url='" + url + '\'' +
                ", html='" + html + '\'' +
                '}';
    }
}
